package com.ease.framework.priv {

   import flash.utils.Dictionary;

   /**
    * @private
    *
    * Contains information about a (pending) request. Does not hold a reference to the
    * request itself to avoid strong-referencing. It's expected to be used by a cache
    * that maintains this missing information, i.e. the request to request-info mapping.
    */
   public class RequestInfo
   {
      /** The entity that made the request. */
      public var requestor:Object;

      /** Some arbitrary context in which the request was made. */
      public var requestContext:Dictionary;

      /** Initializes an instance of this class. */
      public function RequestInfo( requestor:Object, requestContext:Dictionary ) {
         this.requestor = requestor;
         this.requestContext = requestContext;
      }

      /** Clear all references. */
      public function clear():void {
         this.requestor = null;
         this.requestContext = null;
      }
   }

}